package org.eiahe.hr.performance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.performance.domain.PerformanceScore;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 绩效评分视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PerformanceScore.class)
public class PerformanceScoreVo {

    /**
     * 评分ID
     */
    private Long scoreId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    private String employeeNo;

    private String employeeName;

    /**
     * 指标ID
     */
    private Long indicatorId;

    private String indicatorName;

    private Long cycleId;

    private String cycleName;

    private Long positionId;

    private String positionName;

    /**
     * 得分
     */
    private BigDecimal score;

    /**
     * 评分人
     */
    private String scorer;

    /**
     * 评分开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 评分结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 评分时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date scoreTime;

    /**
     * 0未发布。1进行中。2已结束。3已废弃
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 删除标志(0存在 1删除)
     */
    private String delFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 评分状态（0未  1已）
     */
    private String optScoreStatus = "0";
}
